package equipe2msvy.ProjectServeurApplication.beans;

import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="INVESTISSEUR")
@PrimaryKeyJoinColumn(name="ID_INVESTISSEUR")
public class Investisseur extends Personne{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@OneToMany(mappedBy="investisseur", fetch = FetchType.LAZY)
	private Collection<Offre> offres;
	public Investisseur() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Investisseur(String login, String password, String nom,
			String prenom, String adresse, String email, String telephone) {
		super(login, password, nom, prenom, adresse, email, telephone);
		// TODO Auto-generated constructor stub
	}

}
